var clientWidth=window.screen.width;
var html=document.getElementsByTagName('html')[0];
html.style.fontSize=clientWidth/20+'px';
window.onload=function(){
	function $(id){
        return document.getElementById(id);
}
var checkboxs = document.getElementsByClassName('checkbox');
console.log(checkboxs);
$('all').onclick=function(){
	if($('price').innerText=='0.00'){
		for(var i=0;i<checkboxs.length;i++){
			checkboxs[i].checked = $('all').checked;				
		}
		$('price').innerText=$('span_1').innerText;
		$('all1').innerText='1';
      }else{
        for(var i=0;i<checkboxs.length;i++){
			checkboxs[i].checked = $('all').checked;				
		}
      	$('price').innerText='0.00';
      	$('all1').innerText='0';
      }
	}

}
